package org.example.ssmioc1.controller;

import lombok.ToString;
import org.example.ssmioc1.datasource.MyDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@ToString
@Component
public class mydatasourceConfig {
    @Autowired
     MyDataSource myDataSource;
    public void print(){
        System.out.println("数据源保存数据"+myDataSource);
    }
}
